home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2956 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  766 b 

  1. Path: cstatd.cstat.co.za!slipper116226
  2. From: pbs@iaccess.za (Jan Lamprecht)
  3. Newsgroups: comp.lang.c++
  4. Subject: Templates: The reason behind them
  5. Date: Sat, 20 Jan 96 23:13:58 GMT
  6. Organization: Internet Africa
  7. Message-ID: <4drsvm$a6s_001@slipper116226.iafrica.com>
  8. NNTP-Posting-Host: slipper116226.iafrica.com
  9. X-Newsreader: News Xpress Version 1.0 Beta #3
  10.  
  11. I'm busy going through a book and studying C++. But I'm befuddled by the 
  12. concept of templates. I understand classes and how they function, but I do 
  13. not understand WHY there are templates and what one would use them for. 
  14. Could someone please give me the rationale behind it all? Perhaps I'm being 
  15. confused by the syntax too for templates seem very similar to classes - but 
  16. weird!
  17.  
  18. Kindly reply by e-mail.
  19.  
  20.